<?php
class DomArController extends DomController {
	
	public function index() {
		
	}
	
	public function basics() {
		$view = new DomView('DomAr/basics.html');
		$panel = array(
			'title' => 'Basics',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function parsing() {
		$view = new DomView('DomAr/parsing.html');
		$panel = array(
			'title' => 'Parsing',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function annotations() {
		$view = new DomView('DomAr/annotations.html');
		$panel = array(
			'title' => 'Annotations',
			'bodyStyle' => 'padding: 10px; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function validators() {
		$view = new DomView('DomAr/validators.html');
		$panel = array(
			'title' => 'Validators',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function listeners() {
		$view = new DomView('DomAr/listeners.html');
		$panel = array(
			'title' => 'Listeners',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function objectQueries() {
		$view = new DomView('DomAr/objectQueries.html');
		$panel = array(
			'title' => 'Validators',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function sqlQueries() {
		$view = new DomView('DomAr/sqlQueries.html');
		$panel = array(
			'title' => 'Basic SQL queries',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function validatorErrorCodes() {
		$view = new DomView('DomAr/validationErrors.html');	
		$panel = array(
			'title' => 'Validation error codes',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function oneToOne() {
		$view = new DomView('DomAr/oneToOne.html');	
		$panel = array(
			'title' => 'One to one',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function oneToMany() {
		$view = new DomView('DomAr/oneToMany.html');	
		$panel = array(
			'title' => 'One to many',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function manyToMany() {
		$view = new DomView('DomAr/manyToMany.html');	
		$panel = array(
			'title' => 'Many to many',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function classElements() {
		$view = new DomView('DomAr/classElements.html');	
		$panel = array(
			'title' => 'Accessing record properties',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function extendingClasses() {
		$view = new DomView('DomAr/extendingClasses.html');	
		$panel = array(
			'title' => 'Extending classes',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );	
	}
	
	public function cheatSheet() {
		$this->view->setTemplate('DomAr/cheatSheet.html');	
	}
	
	public function customPropertyHandlers() {
		$view = new DomView('DomAr/customPropertyHandlers.html');	
		$panel = array(
			'title' => 'Creating custom property handlers',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function propertyHandlerInterfaces() {
		$view = new DomView('DomAr/propertyHandlersInterfaces.html');	
		$panel = array(
			'title' => 'Property handler interfaces',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginDomArFile() {
		$view = new DomView('DomAr/pluginDomArFile.html');	
		$panel = array(
			'title' => 'DomArFile',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginDomArImage() {
		$view = new DomView('DomAr/pluginDomArImage.html');	
		$panel = array(
			'title' => 'DomArImage',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginDomArDate() {
		$view = new DomView('DomAr/pluginDomArDate.html');	
		$panel = array(
			'title' => 'DomArDate',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginDomArDateTime() {
		$view = new DomView('DomAr/pluginDomArDateTime.html');	
		$panel = array(
			'title' => 'DomArDateTime',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginSimpleOrder() {
		$view = new DomView('DomAr/pluginSimpleOrder.html');	
		$panel = array(
			'title' => 'DomArSimpleOrder',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginSlug() {
		$view = new DomView('DomAr/pluginSlug.html');	
		$panel = array(
			'title' => 'Slug',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginHistory() {
		$view = new DomView('DomAr/pluginHistory.html');	
		$panel = array(
			'title' => 'History',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginChangeLog() {
		$view = new DomView('DomAr/pluginChangeLog.html');	
		$panel = array(
			'title' => 'Change log',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function pluginSearchIndex() {
		$view = new DomView('DomAr/pluginSearchIndex.html');	
		$panel = array(
			'title' => 'SearchIndex',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function serialize() {
		$view = new DomView('DomAr/serialize.html');	
		$panel = array(
			'title' => 'Serialize',
			'bodyStyle' => 'padding: 10px;; line-height:1.8;',
			'html' =>$view->fetch(),
		);		
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function setup() {
		$this->loadController('Index')->setup();
		
		$indexPanel = array(
			'title' => 'Index',
			'html' => '<div id="autoindex"></div>',
		);
		
		
		$this->view->index = DomFg::render( $indexPanel );
		
	}
	
	public function error404() {
		$this->loadController('Index')->error404();
	}
	
}
?>